package com.cpi.cornpp.instructionspurchases.form;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

import com.cpi.cornpp.instructionspurchases.view.InstructionPurchaseSearchView;

public class InstructionPurchaseSearchForm extends ActionForm {
	private static final long serialVersionUID = -7795154835751384644L;
	private int orderField;
	private int orderType;
	private String filters;
	private InstructionPurchaseSearchView instructionPurchaseSearchView;
	public InstructionPurchaseSearchForm(){
		orderField = 1;
		orderType = 0;
		instructionPurchaseSearchView = new InstructionPurchaseSearchView();
	}
	public int getOrderField() {
		return orderField;
	}
	public void setOrderField(int orderField) {
		this.orderField = orderField;
	}
	public int getOrderType() {
		return orderType;
	}
	public void setOrderType(int orderType) {
		this.orderType = orderType;
	}
	public InstructionPurchaseSearchView getInstructionPurchaseSearchView() {
		return instructionPurchaseSearchView;
	}
	public String getFilters() {
		return filters;
	}
	public void setFilters(String filters) {
		this.filters = filters;
	}
	public void setInstructionPurchaseSearchView(
			InstructionPurchaseSearchView instructionPurchaseSearchView) {
		this.instructionPurchaseSearchView = instructionPurchaseSearchView;
	}
	public void reset(ActionMapping mapping, HttpServletRequest request) {
		super.reset(mapping, request);
		orderField = 1;
		orderType = 0;
	}
}